package com.bjpowernode.service;

import com.bjpowernode.pojo.ProductInfo;
import com.bjpowernode.pojo.vo.ProductInfoVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ProductInfoService {

    List<ProductInfo> getAll();

    PageInfo splitPage(int pageNum, int pageSize);

    int save(ProductInfo info);


    ProductInfo getById(int pId);

     PageInfo splitPageVo(ProductInfoVo vo, int pageSize);


    int update(ProductInfo productInfo);

    PageInfo splitbyPage(int page,int PageSize);

    int delete(int pid);

    ProductInfo selectByPrimaryKey(int pid);

    int deleteBatch(String[] split);
}
